var _EsdDynamicTransformationFunction = function($){
/**
* 命名空间定义
*/
var _EsdDynamicTransformationScript = {};
_EsdDynamicTransformationScript.navBlock = {}; // 定义区域跳转类
_EsdDynamicTransformationScript.navBlock.selector = {};
/**
* 文本链接 a
*/
//保证所有a标签都有href
$("a").each(function(){

var aHref = this.href;
if( aHref=="" || aHref==undefined ){
$(this).attr("href","javascript:void(0)");
}

//给a标签加title
var aTitle = this.title;
var aText = this.text;

if( aTitle=="" || aTitle==undefined ){
if( aText!="" || aText!=undefined ){
$(this).attr("title",$.trim(aText));
}
}

});


//select下的option添加title
$("option").each(function(){
var oTitle = this.title;
var oText = this.text;
if( oTitle=="" || oTitle==undefined ){
if( oText!="" || oText!=undefined ){
$(this).attr("title",$.trim(oText));
}
}
});


$("#textfield").attr("title","请输入关键字");
$("#textfield").attr("placeholder","请输入关键字");
$(".zly_ss .zly_ss_btn").attr("title","搜索");
/**
* 图片处理片段
*/


$('img[src="./xwzx/tpxw/201905/W020190602469658598406.jpg"]').attr('title','汪洋与省部级干部民族宗教工作专题研讨班学员座谈').attr('alt','汪洋与省部级干部民族宗教工作专题研讨班学员座谈');$('img[src="./xwzx/wjdt/201907/W020190722557749456761.jpg"]').attr('title','全省民族乡镇全面建成小康社会经验交流现场会在梅河口市召开').attr('alt','全省民族乡镇全面建成小康社会经验交流现场会在梅河口市召开');$('img[src="./images/zly_logo20190425.png"]').attr('title','吉林省民族事务委员会（吉林省宗教事务局）').attr('alt','吉林省民族事务委员会（吉林省宗教事务局）');$('img[src="./ztzl/201905/W020190603343613471379.png"]').attr('title','吉林好人最美民族 团结之星').attr('alt','吉林好人最美民族 团结之星');$('img[src="./images/red.png"]').attr('title','党政机关').attr('alt','党政机关');$('img[src="./xwzx/wjdt/201906/W020190610575978068507.jpg"]').attr('title','吉林省民委召开“不忘初心、牢记使命”主题教育动员大会').attr('alt','吉林省民委召开“不忘初心、牢记使命”主题教育动员大会');$('img[src="./ztzl/201905/W020190605344407014731.gif"]').attr('title','吉林好人最美民族 团结之星').attr('alt','吉林好人最美民族 团结之星');$('img[src="./ldzc/201905/W020190610347901144865.jpg"]').attr('title','朴松烈照片').attr('alt','朴松烈照片');$('img[src="./images/zly_wx20190426.png"]').attr('title','官方微信二维码').attr('alt','官方微信二维码');$('img[src="./ztzl/201908/W020190808434881314939.png"]').attr('title','吉林省参加第十一届全国少数民族传统体育运动会专栏').attr('alt','吉林省参加第十一届全国少数民族传统体育运动会专栏');$('img[src="./ldzc/201905/W020190610348223572586.jpg"]').attr('title','金明哲照片').attr('alt','金明哲照片');$('img[src="./images/zly_pc20190426.png"]').attr('title','吉林省民族信息管理系统').attr('alt','吉林省民族信息管理系统');$('img[src="./ldzc/201905/W020190610348075899903.jpg"]').attr('title','安玉杰照片').attr('alt','安玉杰照片');$('img[src="./ztzl/201908/W020190809331641948741.png"]').attr('title','吉林省参加第十一届全国少数民族传统体育运动会专栏').attr('alt','吉林省参加第十一届全国少数民族传统体育运动会专栏');$('img[src="./ldzc/201905/W020190610348632301214.jpg"]').attr('title','图门照片').attr('alt','图门照片');$('img[src="./hdjl/yjzj/bucxyjzj/201909/W020190930438375974854.jpg"]').attr('title','省民委评议机关作风征求意见箱').attr('alt','省民委评议机关作风征求意见箱');$('img[src="./ldzc/201905/W020190610348449772394.jpg"]').attr('title','孟庆东照片').attr('alt','孟庆东照片');$('img[src="./images/zly_gajg20190429.png"]').attr('title','吉公网安备').attr('alt','吉公网安备');$('img[src="./xwzx/wjdt/201909/W020190924333229473372.jpg"]').attr('title','朴松烈主任赴伊通开展调研并为我省首批少数民族特色村寨揭牌').attr('alt','朴松烈主任赴伊通开展调研并为我省首批少数民族特色村寨揭牌');

//img
$("img").each(function(){
//给图片加alt/title
var imgAlt = this.alt,
imgTitle = this.title,
imgSrc = this.src,
parentText = this.parentElement.text;

if(this.alt=="" || this.alt==undefined){
if(imgTitle!="" && imgTitle!=undefined){
$(this).attr("alt",imgTitle);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("alt",parentText);
}
}
if(this.title=="" || this.title==undefined){
if(imgAlt!="" && imgAlt!=undefined){
$(this).attr("title",imgAlt);
}else if(parentText!="" && parentText!=undefined){
$(this).attr("title",parentText);
}
}
})

$("img").each(function(){
if( (this.alt=="" && this.title=="")||(this.alt==undefined && this.title==undefined) ){
$(this).attr("title","图片");
$(this).attr("alt","图片");
}
})

/**
* 共通头部
*/
/**
* 主导航
*/


//头--------------对应的内容--------整个，头+内容---------第几个-----内容中的第一个a-----------上一个的所有---------上一个的内容第一个a
_EsdDynamicTransformationScript.navTabChange = function (focusObjSelector, listObjSelector, mouseEventObjSelector, keyDownNum, listElementsSelector, prevMouseEventObjSelector, prevListObjsSelector) {
var keydownName = "keydown.navKeydown_" + keyDownNum;
var keydownName2 = keydownName + "_1";
$(focusObjSelector).focus(function () {
if ($(listObjSelector).is(":hidden")) {
$(mouseEventObjSelector).mouseover();
}
$(this).bind(keydownName, function (e) {
if (e.shiftKey && e.keyCode == 9) {
if (prevMouseEventObjSelector != "") {
$(focusObjSelector).mouseout();
$(prevMouseEventObjSelector+" .pop_menu").mouseover();
$(prevListObjsSelector).last().focus();
//					$(this).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
return false;
} else{
$(focusObjSelector).mouseout();
$(this).unbind(keydownName);  // 失去焦点时解绑有问题在这解绑一次
}
} else if (e.keyCode == 9) {

}
});

});
$(focusObjSelector).blur(function () {
$(this).unbind(keydownName);
});

$(listElementsSelector).last().focus(function () {
$(this).bind(keydownName2, function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(mouseEventObjSelector).mouseout();
}
});
});
$(listElementsSelector).last().blur(function () {
$(this).unbind(keydownName2);
});
};


_EsdDynamicTransformationScript.navArray = new Array();

// 导航第一个栏目
_EsdDynamicTransformationScript.nav1 = {}
_EsdDynamicTransformationScript.nav1.focusObjSelector = "#womenhall a:eq(0)"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav1.listObjSelector = "#womenhall .pop_menu"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav1.mouseEventObjSelector = "#womenhall"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav1.keyDownNum = 1; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav1.listElementsSelector = "#womenhall .pop_menu a"; // 按tab聚焦后 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav1.prevMouseEventObjSelector = ""; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav1.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav1);  // 放到数组里循环

// 导航第二个栏目
_EsdDynamicTransformationScript.nav2 = {}
_EsdDynamicTransformationScript.nav2.focusObjSelector = "#menhall a:eq(0)"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav2.listObjSelector = "#menhall .pop_menu"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav2.mouseEventObjSelector = "#menhall"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav2.keyDownNum = 2; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav2.listElementsSelector = "#menhall .pop_menu a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav2.prevMouseEventObjSelector = "#womenhall"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav2.prevListObjsSelector = "#womenhall .pop_menu a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav2);  // 放到数组里循环

// 导航第三个栏目
_EsdDynamicTransformationScript.nav3 = {}
_EsdDynamicTransformationScript.nav3.focusObjSelector = "#womenclothing a:eq(0)"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav3.listObjSelector = "#womenclothing .pop_menu"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav3.mouseEventObjSelector = "#womenclothing"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav3.keyDownNum = 3; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav3.listElementsSelector = "#womenclothing .pop_menu a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav3.prevMouseEventObjSelector = "#menhall"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav3.prevListObjsSelector = "#menhall .pop_menu a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav3);  // 放到数组里循环

// 导航第四个栏目
_EsdDynamicTransformationScript.nav4 = {}
_EsdDynamicTransformationScript.nav4.focusObjSelector = "#menclothing a:eq(0)"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav4.listObjSelector = "#menclothing .pop_menu"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav4.mouseEventObjSelector = "#menclothing"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav4.keyDownNum = 4; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav4.listElementsSelector = "#menclothing .pop_menu a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav4.prevMouseEventObjSelector = "#womenclothing"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav4.prevListObjsSelector = "#womenclothing .pop_menu a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArray.push(_EsdDynamicTransformationScript.nav4);  // 放到数组里循环


for(var i=0; i<_EsdDynamicTransformationScript.navArray.length; i++){

_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArray[i].focusObjSelector, _EsdDynamicTransformationScript.navArray[i].listObjSelector,
_EsdDynamicTransformationScript.navArray[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].keyDownNum, _EsdDynamicTransformationScript.navArray[i].listElementsSelector,
_EsdDynamicTransformationScript.navArray[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArray[i].prevListObjsSelector);
}


// 导航第五个栏目
_EsdDynamicTransformationScript.nav5 = {}
_EsdDynamicTransformationScript.nav5.focusObjSelector = "#nav_menu .nav_link:eq(5)"; //按tab聚焦元素的选择器


_EsdDynamicTransformationScript.navArrayy = new Array();

// 导航第六个栏目
_EsdDynamicTransformationScript.nav6 = {}
_EsdDynamicTransformationScript.nav6.focusObjSelector = "#luggagehall a:eq(0)"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav6.listObjSelector = "#luggagehall .pop_menu"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav6.mouseEventObjSelector = "#luggagehall"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav6.keyDownNum = 6; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav6.listElementsSelector = "#luggagehall .pop_menu a"; // 按tab聚焦后 展示列表中a链接的选择器(展示列表中第一个a标签)
_EsdDynamicTransformationScript.nav6.prevMouseEventObjSelector = ""; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav6.prevListObjsSelector = ""; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav6);  // 放到数组里循环

// 导航第七个栏目
_EsdDynamicTransformationScript.nav7 = {}
_EsdDynamicTransformationScript.nav7.focusObjSelector = "#childrenhall a:eq(0)"; //按tab聚焦元素的选择器
_EsdDynamicTransformationScript.nav7.listObjSelector = "#childrenhall .pop_menu"; // 按tab聚焦后展示列表选择器 用来判断列表是否已经展示
_EsdDynamicTransformationScript.nav7.mouseEventObjSelector = "#childrenhall"; // 按tab聚焦后展示的列表所使用的鼠标事件绑定的元素
_EsdDynamicTransformationScript.nav7.keyDownNum = 7; // keydown事件标识  最好不要重复
_EsdDynamicTransformationScript.nav7.listElementsSelector = "#childrenhall .pop_menu a"; // 按tab聚焦后 展示列表中a链接的选择器
_EsdDynamicTransformationScript.nav7.prevMouseEventObjSelector = "#luggagehall"; //上一个相邻的鼠标事件(mouseover)的元素 如果是向上切换没有就使用空字符串""
_EsdDynamicTransformationScript.nav7.prevListObjsSelector = "#luggagehall .pop_menu a"; // 上一个相邻的展示列表中a链接的选择器

_EsdDynamicTransformationScript.navArrayy.push(_EsdDynamicTransformationScript.nav7);  // 放到数组里循环



for(var i=0; i<_EsdDynamicTransformationScript.navArrayy.length; i++){
_EsdDynamicTransformationScript.navTabChange(_EsdDynamicTransformationScript.navArrayy[i].focusObjSelector, _EsdDynamicTransformationScript.navArrayy[i].listObjSelector,
_EsdDynamicTransformationScript.navArrayy[i].mouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].keyDownNum, _EsdDynamicTransformationScript.navArrayy[i].listElementsSelector,
_EsdDynamicTransformationScript.navArrayy[i].prevMouseEventObjSelector, _EsdDynamicTransformationScript.navArrayy[i].prevListObjsSelector);
}

//导航第五块的倒叙
$(_EsdDynamicTransformationScript.nav5.focusObjSelector).focus(function(){
$(this).bind("keydown.navKeydown_5", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(_EsdDynamicTransformationScript.nav4.focusObjSelector).mouseover();
$(_EsdDynamicTransformationScript.nav4.listElementsSelector).last().focus();
return false;
}
});
});

$(_EsdDynamicTransformationScript.nav5.focusObjSelector).blur(function(){
$(this).unbind("keydown.navKeydown_5");
});




// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

//通过方法赋值
_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[0];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取


//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $("#menhall_menu .topc .w534 .tabbox ul li:eq(0) a");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $("#menhall_menu .topc .w534 .tabbox ul li:eq(1) a");  // 需要修改 这里的tab获取


// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

// 当iframe都加载完毕后执行代码 使用setInterval
_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){

if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined)
&& (_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined) ){
clearInterval(_EsdDynamicTransformationScript.iframeInterval);

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
$(_EsdDynamicTransformationScript.iframe1.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab1.blur(function () {
$(this).unbind("keydown.iframeKeydown_1");
});

// 第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});

// 第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab2.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
});


//第二个标签切换
_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.iframeKeydown_2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
_EsdDynamicTransformationScript.iframeTab1.mouseover();
$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
$(_EsdDynamicTransformationScript.iframe2.self).focus();
return false;
}
});

});
_EsdDynamicTransformationScript.iframeTab2.blur(function () {
$(this).unbind("keydown.iframeKeydown_2");
});


}
}, 500);

}




//第一部分
//二层

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num1 = $(".topc .w730 .tabbox .content div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num2 = $(".topc .w730 .tabbox .content div:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd1TagNum1 = $(".topc .w730 .tabbox ul li:eq(0) a");
_EsdDynamicTransformationScript.esd1TagNum2 = $(".topc .w730 .tabbox ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd1TagNum1Content1 = $(".topc .w730 .tabbox .content div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd1TagNum2Content1 = $(".topc .w730 .tabbox .content div:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd1TagNum1ContentN = $(".topc .w730 .tabbox .content div:eq(0) a:eq("+_EsdDynamicTransformationScript.num1+")");
_EsdDynamicTransformationScript.esd1TagNum2ContentN = $(".topc .w730 .tabbox .content div:eq(1) a:eq("+_EsdDynamicTransformationScript.num2+")");

//第一块
_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});


//第二部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num3 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num4 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(1) a").length-1;
_EsdDynamicTransformationScript.num5 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(2) a").length-1;
_EsdDynamicTransformationScript.num6 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(3) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd2TagNum1 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox ul li:eq(0) a");
_EsdDynamicTransformationScript.esd2TagNum2 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox ul li:eq(1) a");
_EsdDynamicTransformationScript.esd2TagNum3 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox ul li:eq(2) a");
_EsdDynamicTransformationScript.esd2TagNum4 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox ul li:eq(3) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd2TagNum1Content1 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum2Content1 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum3Content1 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(2) a:eq(0)");
_EsdDynamicTransformationScript.esd2TagNum4Content1 = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(3) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd2TagNum1ContentN = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(0) a:eq("+_EsdDynamicTransformationScript.num3+")");
_EsdDynamicTransformationScript.esd2TagNum2ContentN = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(1) a:eq("+_EsdDynamicTransformationScript.num4+")");
_EsdDynamicTransformationScript.esd2TagNum3ContentN = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(2) a:eq("+_EsdDynamicTransformationScript.num5+")");
_EsdDynamicTransformationScript.esd2TagNum4ContentN = $("#luggagehall #luggagehall_menu .topc .w654 .tabbox .content div:eq(3) a:eq("+_EsdDynamicTransformationScript.num6+")");

//第一块
_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd2TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd2TagNum3.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum2.mouseover();
_EsdDynamicTransformationScript.esd2TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

_EsdDynamicTransformationScript.esd2TagNum3Content1.focus(function () {
$(this).bind("keydown.keydown_s3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum3.focus();
return false;
}
});
});

_EsdDynamicTransformationScript.esd2TagNum3Content1.blur(function () {
$(this).unbind("keydown.keydown_s3");
});

_EsdDynamicTransformationScript.esd2TagNum3ContentN.focus(function () {
$(this).bind("keydown.keydown_e3", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum3ContentN.blur(function () {
$(this).unbind("keydown.keydown_e3");
});


//第四块
_EsdDynamicTransformationScript.esd2TagNum4.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd2TagNum3.mouseover();
_EsdDynamicTransformationScript.esd2TagNum3ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd2TagNum4Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd2TagNum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});


//针对所有页面，nav后的第一个a倒切返回nav的最后一个a
_EsdDynamicTransformationScript.esdNavNextA = $("body > .topc:eq(0) a:first");

_EsdDynamicTransformationScript.esdNavNextA.focus(function (e) {
$(this).bind("keydown.keydownN_0", function (e) {
if(e.shiftKey&&e.keyCode==9){
$(_EsdDynamicTransformationScript.nav7.focusObjSelector).mouseover()
$(_EsdDynamicTransformationScript.nav7.listElementsSelector).last().focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esdNavNextA.blur(function () {
$(this).unbind("keydown.keydownN_0");
});
/**
* 网站所有幻灯片
*/


if(location.href=="http://mw.jl.gov.cn/" || location.href=="http://mw.jl.gov.cn/index.html"){
//首页轮播

var part_First = function(){
//轮播,右下角原点--鼠标移动触发情况
//轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $("#demo3 .zly_20190610 a");

//原点和a的title合一起了
_EsdDynamicTransformationScript.esdTagCircleNum1 = $("#demo3 .tips:eq(1) .nums a:eq(0)");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $("#demo3 .tips:eq(1) .nums a:eq(1)");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $("#demo3 .tips:eq(1) .nums a:eq(2)");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $("#demo3 .tips:eq(1) .nums a:eq(3)");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".zlyxx .tabbox ul li:eq(0) a");


//轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum1.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_0");
});

//第一块
_EsdDynamicTransformationScript.esdTagCircleNum1.focus(function (e) {
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum2.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagCircleNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

//第二块
_EsdDynamicTransformationScript.esdTagCircleNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum1.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum3.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagCircleNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

//第三块
_EsdDynamicTransformationScript.esdTagCircleNum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum2.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagCircleNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

//第四块
_EsdDynamicTransformationScript.esdTagCircleNum4.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum3.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab3.mouseover();
_EsdDynamicTransformationScript.iframeTab3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagCircleNum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});


//轮播后的焦点
//		_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
//			$(this).bind("keydown.keydown_6", function (e) {
//				if(e.shiftKey&&e.keyCode==9){
//					_EsdDynamicTransformationScript.esdTagCircleNum4.mouseover();
//					_EsdDynamicTransformationScript.esdTagCircleNum4.focus();
//					return false;
//				}else if (e.keyCode == 9) {
//
//				}
//			});
//		});
//		_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
//			$(this).unbind("keydown.keydown_6");
//		});


}


}



/**
* 主页js
*/

if(location.href=="http://mw.jl.gov.cn/" || location.href=="http://mw.jl.gov.cn/index.html"){
//首页

$("select[name='pageselect']").attr("title","省民委委员单位");


// 总计时器，保证目标加载完毕再执行js（轮播+国务动态四级选项卡）
_EsdDynamicTransformationScript.intervalMw = setInterval(function(){

if( ( $("#demo3 .tips:eq(1) .nums a:eq(3)") != undefined )
&& ( document.getElementsByTagName("iframe")[3].contentWindow.document.getElementsByTagName("a")[0] != undefined )
&& ( $(".zlyxx .tabbox .content>div:eq(3) a:eq(0)") != undefined )  ){
clearInterval(_EsdDynamicTransformationScript.intervalMw);

part_First();
part_Second();
part_Third();

}

}, 500);



//第四部分---政策发布
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num11 = $(".topc .w415:eq(1) .tabbox .content div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num12 = $(".topc .w415:eq(1) .tabbox .content div:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd4TagNum1 = $(".topc .w415:eq(1) .tabbox ul:eq(0) li:eq(0) a");
_EsdDynamicTransformationScript.esd4TagNum2 = $(".topc .w415:eq(1) .tabbox ul:eq(0) li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".topc .w415:eq(1) .tabbox .content div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".topc .w415:eq(1) .tabbox .content div:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".topc .w415:eq(1) .tabbox .content div:eq(0) a:eq("+_EsdDynamicTransformationScript.num11+")");
_EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".topc .w415:eq(1) .tabbox .content div:eq(1) a:eq("+_EsdDynamicTransformationScript.num12+")");

//第一块
_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

//第五部分

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num13 = $(".topc .w415:eq(2) .tabbox .content div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num14 = $(".topc .w415:eq(2) .tabbox .content div:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd5TagNum1 = $(".topc .w415:eq(2) .tabbox ul:eq(0) li:eq(0) a");
_EsdDynamicTransformationScript.esd5TagNum2 = $(".topc .w415:eq(2) .tabbox ul:eq(0) li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd5TagNum1Content1 = $(".topc .w415:eq(2) .tabbox .content div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd5TagNum2Content1 = $(".topc .w415:eq(2) .tabbox .content div:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd5TagNum1ContentN = $(".topc .w415:eq(2) .tabbox .content div:eq(0) a:eq("+_EsdDynamicTransformationScript.num11+")");
_EsdDynamicTransformationScript.esd5TagNum2ContentN = $(".topc .w415:eq(2) .tabbox .content div:eq(1) a:eq("+_EsdDynamicTransformationScript.num12+")");

//第一块
_EsdDynamicTransformationScript.esd5TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd5TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd5TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd5TagNum1.mouseover();
_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

//第六部分---部门预算
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num18 = $(".topc .zly_xxgk .tabbox .content div:eq(1) .tabbox .content div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num19 = $(".topc .zly_xxgk .tabbox .content div:eq(1) .tabbox .content div:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd7TagNum1 = $(".topc .zly_xxgk .tabbox .content div:eq(1) .tabbox ul:eq(0) li:eq(0) a");
_EsdDynamicTransformationScript.esd7TagNum2 = $(".topc .zly_xxgk .tabbox .content div:eq(1) .tabbox ul:eq(0) li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd7TagNum1Content1 = $(".topc .zly_xxgk .tabbox .content div:eq(1) .tabbox .content div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd7TagNum2Content1 = $(".topc .zly_xxgk .tabbox .content div:eq(1) .tabbox .content div:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd7TagNum1ContentN = $(".topc .zly_xxgk .tabbox .content div:eq(1) .tabbox .content div:eq(0) a:eq("+_EsdDynamicTransformationScript.num18+")");
_EsdDynamicTransformationScript.esd7TagNum2ContentN = $(".topc .zly_xxgk .tabbox .content div:eq(1) .tabbox .content div:eq(1) a:eq("+_EsdDynamicTransformationScript.num19+")");

//第一块
_EsdDynamicTransformationScript.esd7TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd7TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd7TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd7TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd7TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd7TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd7TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd7TagNum1.mouseover();
_EsdDynamicTransformationScript.esd7TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd7TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd7TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});




//--------------------------------------
//第七部分
//三层  ---提案议案
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num15 = $(".topc .zly_xxgk .tabbox .content div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num16 = $(".topc .zly_xxgk .tabbox .content div:eq(1) a").length-1;
_EsdDynamicTransformationScript.num17 = $(".topc .zly_xxgk .tabbox .content div:eq(2) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd6TagNum1 = $(".topc .zly_xxgk .tabbox ul:eq(0) li:eq(0) a");
_EsdDynamicTransformationScript.esd6TagNum2 = $(".topc .zly_xxgk .tabbox ul:eq(0) li:eq(1) a");
_EsdDynamicTransformationScript.esd6TagNum3 = $(".topc .zly_xxgk .tabbox ul:eq(0) li:eq(2) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd6TagNum1Content1 = $(".topc .zly_xxgk .tabbox .content div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd6TagNum2Content1 = $(".topc .zly_xxgk .tabbox .content div:eq(1) a:eq(0)");
_EsdDynamicTransformationScript.esd6TagNum3Content1 = $(".topc .zly_xxgk .tabbox .content div:eq(6) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd6TagNum1ContentN = $(".topc .zly_xxgk .tabbox .content div:eq(0) a:eq("+_EsdDynamicTransformationScript.num15+")");
_EsdDynamicTransformationScript.esd6TagNum2ContentN = $(".topc .zly_xxgk .tabbox .content div:eq(1) a:eq("+_EsdDynamicTransformationScript.num16+")");
_EsdDynamicTransformationScript.esd6TagNum3ContentN = $(".topc .zly_xxgk .tabbox .content div:eq(6) a:eq("+_EsdDynamicTransformationScript.num17+")");

//第一块
_EsdDynamicTransformationScript.esd6TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd6TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd6TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd6TagNum1.mouseover();
_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

_EsdDynamicTransformationScript.esd6TagNum2Content1.focus(function () {
$(this).bind("keydown.keydown_s2", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum2Content1.blur(function () {
$(this).unbind("keydown.keydown_s2");
});

_EsdDynamicTransformationScript.esd6TagNum2ContentN.focus(function () {
$(this).bind("keydown.keydown_e2", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum2ContentN.blur(function () {
$(this).unbind("keydown.keydown_e2");
});

//第三块
_EsdDynamicTransformationScript.esd6TagNum3.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd6TagNum2.mouseover();
_EsdDynamicTransformationScript.esd6TagNum2ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum3Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});


//第八部分---机构设置
//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num21 = $(".zlyjgsz .content div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num22 = $(".zlyjgsz .content div:eq(1) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd8TagNum1 = $(".zlyjgsz ul li:eq(0) a");
_EsdDynamicTransformationScript.esd8TagNum2 = $(".zlyjgsz ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd8TagNum1Content1 = $(".zlyjgsz .content div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd8TagNum2Content1 = $(".zlyjgsz .content div:eq(1) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd8TagNum1ContentN = $(".zlyjgsz .content div:eq(0) a:eq("+_EsdDynamicTransformationScript.num21+")");
_EsdDynamicTransformationScript.esd8TagNum2ContentN = $(".zlyjgsz .content div:eq(1) a:eq("+_EsdDynamicTransformationScript.num22+")");

//第一块
_EsdDynamicTransformationScript.esd8TagNum1.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd8TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd8TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd8TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd8TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd8TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd8TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd8TagNum1.mouseover();
_EsdDynamicTransformationScript.esd8TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd8TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd8TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});


var part_Second = function(){

//轮播右边的四级导航
// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-3];
jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe3 = {};
_EsdDynamicTransformationScript.iframe4 = {};

//通过方法赋值
_EsdDynamicTransformationScript.iframeElement3 = document.getElementsByTagName("iframe")[2];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement4 = document.getElementsByTagName("iframe")[3];   // 需要修改 这里的iframe获取


//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab3 = $(".zlyxx .tabbox ul li:eq(0) a");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab4 = $(".zlyxx .tabbox ul li:eq(1) a");  // 需要修改 这里的tab获取



//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe3,_EsdDynamicTransformationScript.iframeElement3);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe4,_EsdDynamicTransformationScript.iframeElement4);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab3.focus(function (e) {
$(this).bind("keydown.iframeKeydown_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum4.focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab3.trigger("blur");
$(_EsdDynamicTransformationScript.iframe3.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab3.blur(function () {
$(this).unbind("keydown.iframeKeydown_3");
});

// 第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe3.first_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_first3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).unbind("keydown.iframeKeydown_first3");
_EsdDynamicTransformationScript.iframeTab3.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(_EsdDynamicTransformationScript.iframe3.first_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_first3");
});

// 第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe3.last_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_last3", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(this).unbind("keydown.iframeKeydown_last3");
_EsdDynamicTransformationScript.iframeTab4.mouseover();
_EsdDynamicTransformationScript.iframeTab4.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe3.last_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_last3");
});


//第二个标签 切换
_EsdDynamicTransformationScript.iframeTab4.focus(function (e) {
$(this).bind("keydown.iframeKeydown_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab4.trigger("blur");
_EsdDynamicTransformationScript.iframeTab3.mouseover();
$(_EsdDynamicTransformationScript.iframe3.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab4.trigger("blur");
$(_EsdDynamicTransformationScript.iframe4.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab4.blur(function () {
$(this).unbind("keydown.iframeKeydown_4");
});

// 第二个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe4.first_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_first4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).unbind("keydown.iframeKeydown_first4");
_EsdDynamicTransformationScript.iframeTab4.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(_EsdDynamicTransformationScript.iframe4.first_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_first4");
});

// 第二个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe4.last_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_last4", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum1.mouseover();
_EsdDynamicTransformationScript.esd9TagNum1.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe4.last_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_last4");
});



}

var part_Third = function(){
//二层---委局动态

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num20 = $(".zlyxx .tabbox .content>div:eq(2) a").length-1;
_EsdDynamicTransformationScript.num21 = $(".zlyxx .tabbox .content>div:eq(3) a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd9TagNum1 = $(".zlyxx .tabbox ul li:eq(2) a");
_EsdDynamicTransformationScript.esd9TagNum2 = $(".zlyxx .tabbox ul li:eq(3) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd9TagNum1Content1 = $(".zlyxx .tabbox .content>div:eq(2) a:eq(0)");
_EsdDynamicTransformationScript.esd9TagNum2Content1 = $(".zlyxx .tabbox .content>div:eq(3) a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd9TagNum1ContentN = $(".zlyxx .tabbox .content>div:eq(2) a:eq("+_EsdDynamicTransformationScript.num20+")");
_EsdDynamicTransformationScript.esd9TagNum2ContentN = $(".zlyxx .tabbox .content>div:eq(3) a:eq("+_EsdDynamicTransformationScript.num21+")");


//第一块
_EsdDynamicTransformationScript.esd9TagNum1.focus(function (e) {
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.iframeTab4.mouseover();
//	$(_EsdDynamicTransformationScript.iframe4.self).focus();
$(_EsdDynamicTransformationScript.iframe4.last_aLink).focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum1Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd9TagNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

_EsdDynamicTransformationScript.esd9TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd9TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown_s1");
});

_EsdDynamicTransformationScript.esd9TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum2.mouseover();
_EsdDynamicTransformationScript.esd9TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd9TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown_e1");
});

//第二块
_EsdDynamicTransformationScript.esd9TagNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd9TagNum1.mouseover();
_EsdDynamicTransformationScript.esd9TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd9TagNum2Content1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd9TagNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});


}





}







/**
* 二级页
*/

// -------------------------------二级页------------------------------------


if(location.href=="http://mw.jl.gov.cn/xwzx/"){
//新闻中心

// 总计时器，保证目标加载完毕再执行js（轮播+国务动态四级选项卡）
_EsdDynamicTransformationScript.intervalMwB = setInterval(function(){

if( ( $("#demo3 .tips:eq(1) .nums a:eq(3)") != undefined )
&& ( document.getElementsByTagName("iframe")[2].contentWindow.document.getElementsByTagName("a")[0]!=undefined )  ){
clearInterval(_EsdDynamicTransformationScript.intervalMwB);

partB_First();
partB_Second();

}

}, 500);


var partB_First = function(){

//轮播前的标签
_EsdDynamicTransformationScript.esdTagFrontNum1 = $("#demo3 .zly_20190610 a");

//原点和a的title合一起了
_EsdDynamicTransformationScript.esdTagCircleNum1 = $("#demo3 .tips:eq(1) .nums a:eq(0)");
_EsdDynamicTransformationScript.esdTagCircleNum2 = $("#demo3 .tips:eq(1) .nums a:eq(1)");
_EsdDynamicTransformationScript.esdTagCircleNum3 = $("#demo3 .tips:eq(1) .nums a:eq(2)");
_EsdDynamicTransformationScript.esdTagCircleNum4 = $("#demo3 .tips:eq(1) .nums a:eq(3)");

//轮播后的标签
_EsdDynamicTransformationScript.esdTagAfterNum1 = $(".zlyxx .tabbox ul li:eq(0) a");

//轮播前的焦点
_EsdDynamicTransformationScript.esdTagFrontNum1.focus(function (e) {
$(this).bind("keydown.keydown_0", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum1.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagFrontNum1.blur(function () {
$(this).unbind("keydown.keydown_0");
});

//第一块
_EsdDynamicTransformationScript.esdTagCircleNum1.focus(function (e) {
$(this).bind("keydown.keydown_1", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagFrontNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum2.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagCircleNum1.blur(function () {
$(this).unbind("keydown.keydown_1");
});

//第二块
_EsdDynamicTransformationScript.esdTagCircleNum2.focus(function (e) {
$(this).bind("keydown.keydown_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum1.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum1.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum3.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagCircleNum2.blur(function () {
$(this).unbind("keydown.keydown_2");
});

//第三块
_EsdDynamicTransformationScript.esdTagCircleNum3.focus(function (e) {
$(this).bind("keydown.keydown_3", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum2.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum2.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum4.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagCircleNum3.blur(function () {
$(this).unbind("keydown.keydown_3");
});

//第四块
_EsdDynamicTransformationScript.esdTagCircleNum4.focus(function (e) {
$(this).bind("keydown.keydown_4", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum3.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum3.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.iframeTab3.mouseover();
_EsdDynamicTransformationScript.iframeTab3.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esdTagCircleNum4.blur(function () {
$(this).unbind("keydown.keydown_4");
});

//轮播后的焦点
_EsdDynamicTransformationScript.esdTagAfterNum1.focus(function (e) {
$(this).bind("keydown.keydown_6", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esdTagCircleNum4.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum4.focus();
return false;
}else if (e.keyCode == 9) {

}
});
});
_EsdDynamicTransformationScript.esdTagAfterNum1.blur(function () {
$(this).unbind("keydown.keydown_6");
});

}



var partB_Second = function(){

//轮播右边的二级导航
// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-3];
jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe3 = {};
_EsdDynamicTransformationScript.iframe4 = {};

//通过方法赋值
_EsdDynamicTransformationScript.iframeElement3 = document.getElementsByTagName("iframe")[2];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement4 = document.getElementsByTagName("iframe")[3];   // 需要修改 这里的iframe获取

//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab3 = $(".zlyxx .tabbox ul li:eq(0) a");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab4 = $(".zlyxx .tabbox ul li:eq(1) a");  // 需要修改 这里的tab获取

//通过方法赋值
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe3,_EsdDynamicTransformationScript.iframeElement3);
_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe4,_EsdDynamicTransformationScript.iframeElement4);

//第一个标签 切换
_EsdDynamicTransformationScript.iframeTab3.focus(function (e) {
$(this).bind("keydown.iframeKeydown_3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esdTagCircleNum4.mouseover();
_EsdDynamicTransformationScript.esdTagCircleNum4.focus();
return false;
} else if (e.keyCode == 9) {
//					_EsdDynamicTransformationScript.iframeTab3.trigger("blur");
$(_EsdDynamicTransformationScript.iframe3.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab3.blur(function () {
$(this).unbind("keydown.iframeKeydown_3");
});

// 第一个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe3.first_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_first3", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab3.focus();
return false;
} else if (e.keyCode == 9) {
}
});
});
$(_EsdDynamicTransformationScript.iframe3.first_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_first3");
});

// 第一个标签的最后一个链接
$(_EsdDynamicTransformationScript.iframe3.last_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_last3", function (e) {
if (e.shiftKey && e.keyCode == 9) {

} else if (e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab4.mouseover();
_EsdDynamicTransformationScript.iframeTab4.focus();
return false;
}
});
});
$(_EsdDynamicTransformationScript.iframe3.last_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_last3");
});


//第二个标签 切换
_EsdDynamicTransformationScript.iframeTab4.focus(function (e) {
$(this).bind("keydown.iframeKeydown_4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
//					_EsdDynamicTransformationScript.iframeTab4.trigger("blur");
_EsdDynamicTransformationScript.iframeTab3.mouseover();
$(_EsdDynamicTransformationScript.iframe3.last_aLink).focus();
return false;
} else if (e.keyCode == 9) {
//					_EsdDynamicTransformationScript.iframeTab4.trigger("blur");
$(_EsdDynamicTransformationScript.iframe4.self).focus();
return false;
}
});
});
_EsdDynamicTransformationScript.iframeTab4.blur(function () {
$(this).unbind("keydown.iframeKeydown_4");
});

// 第二个标签的第一个链接
$(_EsdDynamicTransformationScript.iframe4.first_aLink).focus(function () {
$(this).bind("keydown.iframeKeydown_first4", function (e) {
if (e.shiftKey && e.keyCode == 9) {
$(this).trigger("blur");
_EsdDynamicTransformationScript.iframeTab4.focus();
return false;
} else if (e.keyCode == 9) {

}
});
});
$(_EsdDynamicTransformationScript.iframe4.first_aLink).blur(function () {
$(this).unbind("keydown.iframeKeydown_first4");
});


}

}



if(location.href=="http://mw.jl.gov.cn/xxgk/"){
//信息公开


//通知公告+人事管理
//二层

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num10 = $(".topc .w639:eq(0) .tabbox .content>div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num11 = $(".topc .w639:eq(0) .tabbox .content>div:eq(0)").next().find("a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd4TagNum1 = $(".topc .w639:eq(0) .tabbox ul li:eq(0) a");
_EsdDynamicTransformationScript.esd4TagNum2 = $(".topc .w639:eq(0) .tabbox ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd4TagNum1Content1 = $(".topc .w639:eq(0) .tabbox .content>div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd4TagNum2Content1 = $(".topc .w639:eq(0) .tabbox .content>div:eq(0)").next().find("a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd4TagNum1ContentN = $(".topc .w639:eq(0) .tabbox .content>div:eq(0) a:eq("+_EsdDynamicTransformationScript.num10+")");
_EsdDynamicTransformationScript.esd4TagNum2ContentN = $(".topc .w639:eq(0) .tabbox .content>div:eq(0)").next().find("a:eq("+_EsdDynamicTransformationScript.num11+")");

//第一块
_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown4_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {

$(this).unbind("keydown.keydown4_1");
});

_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown4_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown4_s1");
});

_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown4_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown4_e1");
});

//第二块
_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown4_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
$(this).unbind("keydown.keydown4_2");
});



//提案议案+部门预决算信息
//二层

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num12 = $(".topc .ml4 .tabbox .content>div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num13 = $(".topc .ml4 .tabbox .content>div:eq(0)").next().find("a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd5TagNum1 = $(".topc .ml4 .tabbox ul li:eq(0) a");
_EsdDynamicTransformationScript.esd5TagNum2 = $(".topc .ml4 .tabbox ul li:eq(1) a");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd5TagNum1Content1 = $(".topc .ml4 .tabbox .content>div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd5TagNum2Content1 = $(".topc .ml4 .tabbox .content>div:eq(0)").next().find("a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd5TagNum1ContentN = $(".topc .ml4 .tabbox .content>div:eq(0) a:eq("+_EsdDynamicTransformationScript.num12+")");
_EsdDynamicTransformationScript.esd5TagNum2ContentN = $(".topc .ml4 .tabbox .content>div:eq(0)").next().find("a:eq("+_EsdDynamicTransformationScript.num13+")");

//第一块
_EsdDynamicTransformationScript.esd5TagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown5_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd5TagNum1.blur(function () {

$(this).unbind("keydown.keydown5_1");
});

_EsdDynamicTransformationScript.esd5TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown5_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown5_s1");
});

_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown5_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd5TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown5_e1");
});

//第二块
_EsdDynamicTransformationScript.esd5TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown5_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd5TagNum1.mouseover();
_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd5TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd5TagNum2.blur(function () {
$(this).unbind("keydown.keydown5_2");
});



//部门预算+部门决算
//二层

//各个选项名称对应的内容数量
_EsdDynamicTransformationScript.num14 = $(".topc .ml4 .tabbox .content .content>div:eq(0) a").length-1;
_EsdDynamicTransformationScript.num15 = $(".topc .ml4 .tabbox .content .content>div:eq(0)").next().find("a").length-1;

//各个选项名称
_EsdDynamicTransformationScript.esd6TagNum1 = $(".topc .ml4 .tabbox .content>div:eq(0)").next().find("a:eq(0)");
_EsdDynamicTransformationScript.esd6TagNum2 = $(".topc .ml4 .tabbox .content>div:eq(0)").next().find("a:eq(1)");

//各个选项中的第一个内容
_EsdDynamicTransformationScript.esd6TagNum1Content1 = $(".topc .ml4 .tabbox .content .content>div:eq(0) a:eq(0)");
_EsdDynamicTransformationScript.esd6TagNum2Content1 = $(".topc .ml4 .tabbox .content .content>div:eq(0)").next().find("a:eq(0)");

//各个选项中的最后一个内容
_EsdDynamicTransformationScript.esd6TagNum1ContentN = $(".topc .ml4 .tabbox .content .content>div:eq(0) a:eq("+_EsdDynamicTransformationScript.num14+")");
_EsdDynamicTransformationScript.esd6TagNum2ContentN = $(".topc .ml4 .tabbox .content .content>div:eq(0)").next().find("a:eq("+_EsdDynamicTransformationScript.num15+")");

//第一块
_EsdDynamicTransformationScript.esd6TagNum1.focus(function (e) {

e = $(this).mouseover();
$(this).bind("keydown.keydown6_1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum1Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd6TagNum1.blur(function () {

$(this).unbind("keydown.keydown6_1");
});

_EsdDynamicTransformationScript.esd6TagNum1Content1.focus(function () {
$(this).bind("keydown.keydown6_s1", function (e) {
if (e.shiftKey && e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum1.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum1Content1.blur(function () {
$(this).unbind("keydown.keydown6_s1");
});

_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus(function () {
$(this).bind("keydown.keydown6_e1", function (e) {
if(e.shiftKey&&e.keyCode==9){

}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2.focus();
return false;
}
});
});
_EsdDynamicTransformationScript.esd6TagNum1ContentN.blur(function () {
$(this).unbind("keydown.keydown6_e1");
});

//第二块
_EsdDynamicTransformationScript.esd6TagNum2.focus(function (e) {
e = $(this).mouseover();
$(this).bind("keydown.keydown6_2", function (e) {
if(e.shiftKey&&e.keyCode==9){
_EsdDynamicTransformationScript.esd6TagNum1.mouseover();
_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus();
return false;
}else if (e.keyCode == 9) {
_EsdDynamicTransformationScript.esd6TagNum2Content1.focus();
return false;
}
});

});
_EsdDynamicTransformationScript.esd6TagNum2.blur(function () {
$(this).unbind("keydown.keydown6_2");
});


}



if(location.href=="http://mw.jl.gov.cn/hdjl/mwxx/"){
//民委信箱
_EsdDynamicTransformationScript.slidePointInterval = setInterval(function () {
if ( document.getElementsByTagName("iframe")[2].contentWindow.document.getElementById("SubmitButton") != undefined ) {
clearInterval(_EsdDynamicTransformationScript.slidePointInterval);

var inputIframe = document.getElementsByTagName("iframe")[2].contentWindow.document;
$(inputIframe).find("#frmData input:eq(0)").attr({placeholder:"咨询人",title:"咨询人"});
$(inputIframe).find("#frmData input:eq(1)").attr({placeholder:"联系电话",title:"联系电话"});
$(inputIframe).find("#frmData input:eq(2)").attr({placeholder:"通讯地址",title:"通讯地址"});
$(inputIframe).find("#frmData input:eq(3)").attr({placeholder:"电子邮件",title:"电子邮件"});
$(inputIframe).find("#frmData input:eq(4)").attr({placeholder:"标题",title:"标题"});
$(inputIframe).find("#frmData textarea").attr({placeholder:"内容",title:"内容"});

$(inputIframe).find("#SubmitButton").attr("title","提交");
$(inputIframe).find("#ResetButton").attr("title","重置");

}
}, 500);

}







/**
* 共通底部处理
*/
/**
* 文本链接 a
*/
//	_EsdDynamicTransformationScript.navBlock = {}; //定义区域跳转类
//	_EsdDynamicTransformationScript.navBlock.debug = true; //是否是调试模式，调试模式有红边线，非调试模式关闭红边框
//	//定义跳转 使用jquery选择器语法
//	_EsdDynamicTransformationScript.navBlock.selector = {};

$(".top").attr("id","header");
_EsdDynamicTransformationScript.navBlock.selector.top = "#header";
$(".dh").attr("id","nav");
_EsdDynamicTransformationScript.navBlock.selector.nav = "#nav";
$(".zly_foot").attr("id","footer");
_EsdDynamicTransformationScript.navBlock.selector.footer = "#footer";


//内容页
if( $(".xq_sj").length > 0 ){
$("body > .topc:eq(0)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";
$("#content").attr("id","content");
_EsdDynamicTransformationScript.navBlock.selector.content = "#content";

$(".dqwz").addClass("navBlock");
$("#content").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

//面包屑导航（除首页）
if( $(".dqwz").length > 0 ){

//目录页的翻页input处理
$("#num").attr("title","跳转到第多少页");
$("#num").attr("placeholder","跳转到第多少页");
$(".zt12").attr("title","翻页");
$(".zt12").attr("placeholder","翻页");

$("body > .topc:eq(0)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

$(".dqwz").addClass("navBlock");
$(".dqwz").parent().addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}


if(location.href=="http://mw.jl.gov.cn/" || location.href=="http://mw.jl.gov.cn/index.html"){
//首页
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$("body > .topc:eq(0)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$("#demo3").addClass("navBlock");
$("#demo3").next().addClass("navBlock");
$("body>.topc:eq(1) .w415:eq(0)").addClass("navBlock");
$("body>.topc:eq(1) .w415:eq(1)").addClass("navBlock");
$("body>.topc:eq(1) .w415:eq(2)").addClass("navBlock");
$("#demo1").addClass("navBlock");
$("body>.topc:eq(2)").addClass("navBlock");
$("body>.topc:eq(3) .w765").addClass("navBlock");
$("body>.topc:eq(3) .hdjl").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

if(location.href=="http://mw.jl.gov.cn/xwzx/"){
//新闻中心
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$("body > .topc:eq(0)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$("body>.topc>div").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

if(location.href=="http://mw.jl.gov.cn/xxgk/"){
//信息公开
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$("body > .topc:eq(0)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$(".w639").addClass("navBlock");
$(".xxgkbg:eq(0)").addClass("navBlock");
$(".tabbox:last").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

if(location.href=="http://mw.jl.gov.cn/bmjs/" || location.href=="http://mw.jl.gov.cn/jgdj/" || location.href=="http://mw.jl.gov.cn/zcfg/" || location.href=="http://mw.jl.gov.cn/ztzl/"){
//导航的其它二级页
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$("body > .topc:eq(0)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$("body>.topc").addClass("navBlock");

_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}

if(location.href=="http://mw.jl.gov.cn/hdjl/mwxx/"){
//民委信箱
//主要修改部分把网站对应的选择器赋值给相应的变量。或用jquery把默认的id复制给网站的元素****************************此处重要位置修改
$("body > .topc:eq(0)").attr("id","main");
_EsdDynamicTransformationScript.navBlock.selector.main = "#main";

_EsdDynamicTransformationScript.navBlock.selector.left = "#left";

_EsdDynamicTransformationScript.navBlock.selector.right = "#right";

_EsdDynamicTransformationScript.navBlock.selector.content = "#content";
//给栏目的class属性添加navBlock值来标识这是需要切的栏目区块。
$("body>.topc").addClass("navBlock");
$("body table").addClass("navBlock");
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; //激活的采用class因为会激活多个
}










/**
* 区域导航、调试开关
*/

$(document).bind("keydown.keydown_9001", function(e) {
if (e.shiftKey && e.keyCode == 20) {
$("*").focus(function() {
$(this).css({
"outline" : "2px dashed red"
});
});
$("*").blur(function() {
$(this).css({
"outline" : "0px black"
});
});
}
});

_EsdDynamicTransformationScript.navBlock.debug = true; // 是否是调试模式，调试模式有红边线，非调试模式关闭红边框
_EsdDynamicTransformationScript.navBlock.selector.activate = ".navBlock"; // 激活的采用class因为会激活多个
// 快捷键定义区
//_EsdDynamicTransformationScript.navBlock.key = {};

//_EsdDynamicTransformationScript.navBlock.key.top = "alt+1"; // (top)
//_EsdDynamicTransformationScript.navBlock.key.nav = "alt+2"; // (nav)
//_EsdDynamicTransformationScript.navBlock.key.main = "alt+3"; // (main)
//_EsdDynamicTransformationScript.navBlock.key.content = "alt+4"; // (content)
//_EsdDynamicTransformationScript.navBlock.key.left = "alt+5"; // (left)
//_EsdDynamicTransformationScript.navBlock.key.right = "alt+6"; // (right)
//_EsdDynamicTransformationScript.navBlock.key.footer = "alt+7"; // (footer)
//_EsdDynamicTransformationScript.navBlock.key.down = "alt+8"; // (down)
//_EsdDynamicTransformationScript.navBlock.key.up = "alt+9"; // (up);

// 以下变量主要用于区块跳转
_EsdDynamicTransformationScript.navBlock.sIndex = -1; // 当前栏目下标
_EsdDynamicTransformationScript.navBlock.maxIndex = -1; // 保存目前所有class="navBlock"的区域块总数量，栏目总量下标。
_EsdDynamicTransformationScript.navBlock.minIndex = 0; // 栏目数量起始下标

// 主要代码区域

// 导航跳转
_EsdDynamicTransformationScript.navBlock.keyShowSelect = function(i) {
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, el) {
if (i == index) {
_EsdDynamicTransformationScript.navBlock.debugView(el);
$(el).find("a").each(function(i, e) {
if (i == 0) {
$(e).focus();
}
});

}
});
}

// 获取所有class=navBlock的区域的总数量，初始化轮训所有需要跳转的块
$(_EsdDynamicTransformationScript.navBlock.selector.activate).each(function(index, ehx) {
_EsdDynamicTransformationScript.navBlock.maxIndex++;
});



// 快捷键功能区域
// 跳转到头部alt+1(49)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 49) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.top);
}

});
// 跳转到导航alt+2(50)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 50) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.nav);
}

});
// 跳转到主要区域alt+3(51)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 51) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.main);
}
});

// 跳转到正文区域alt+4(52)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 52) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.content);
}
});

// 跳转到左区域alt+5(53)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 53) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.left);
}
});

// 跳转到右区域alt+6(54)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 54) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.right);
}
});
// 跳转到底部alt+7(55)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 55) {
_EsdDynamicTransformationScript.navBlock.keySelectScroll(_EsdDynamicTransformationScript.navBlock.selector.footer);
}
});
//前进alt+8(56)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 56) {
if (_EsdDynamicTransformationScript.navBlock.sIndex < _EsdDynamicTransformationScript.navBlock.maxIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex++;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});

// 后退alt+9(57)
$(document).keydown(function(e) {
if (e.altKey && e.keyCode == 57) {
if (_EsdDynamicTransformationScript.navBlock.sIndex > _EsdDynamicTransformationScript.navBlock.minIndex) {
_EsdDynamicTransformationScript.navBlock.sIndex--;
_EsdDynamicTransformationScript.navBlock.keyShowSelect(_EsdDynamicTransformationScript.navBlock.sIndex);
}
}
});
// 特定区域跳转
_EsdDynamicTransformationScript.navBlock.keySelectScroll = function(id) {
if ($(id).length > 0) {
_EsdDynamicTransformationScript.navBlock.appendIns(id,true);//插入ins
_EsdDynamicTransformationScript.navBlock.debugView(id);
$(id).find("a").each(function(index) {
if (index == 0) {
$(this).focus();
}
});
_EsdDynamicTransformationScript.navBlock.appendIns(id,false);//清楚ins
} else {
}

}
//为了解决漂浮高等于0的情况下区域显示是一条线
_EsdDynamicTransformationScript.navBlock.appendIns=function(id,b){
if(b==true){
$(id).append("<ins id='esdNavBlockIns' style='clear: both;display: block;'></ins>")
}else{
$("#esdNavBlockIns").remove();
}
}

if (_EsdDynamicTransformationScript.navBlock.debug == true) {
// 如果开启调试模式，添加调试绘制矩形边线
$("body").append("<div id='show_top' class='lineshow'></div>");
$("body").append("<div id='show_bottom' class='lineshow'></div>");
$("body").append("<div id='show_left' class='lineshow'></div>");
$("body").append("<div id='show_right' class='lineshow'></div>");
$(".lineshow").css({
"display" : "none"
});
}
// 开启调试模式后会显示红边
_EsdDynamicTransformationScript.navBlock.debugView = function(e) {
if (_EsdDynamicTransformationScript.navBlock.debug == true) {
var x = $(e).offset();
//var w = parseInt($(e).css("width"));
var w = $(e).outerWidth();//返回元素的宽度（包含 padding 和 border）
//var h = parseInt($(e).css("height"));
var h = $(e).outerHeight();//返回元素的高度（包含 padding 和 border）
$("#show_top").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_bottom").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top + h,
"left" : x.left,
"width" : w,
"height" : "0px"
});
$("#show_left").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left,
"width" : "0px",
"height" : h
});
$("#show_right").css({
"z-index" : "9999",
"border" : "red 2px solid",
"position" : "absolute",
"top" : x.top,
"left" : x.left + w,
"width" : "0px",
"height" : h
});
$("html,body").animate({
scrollTop : $("#show_top").offset().top
}, 200);
$(".lineshow").css({
"display" : "block"
});
}
}
};
/**
* 主入口方法
*/

if (window.jQuery == undefined) {
var wzaInitInterval = setInterval(function(){
if(document.body!=null){
clearInterval(wzaInitInterval);
//			var originalWindowOnload = null;
//			if(window.onload!=null){
//				originalWindowOnload = window.onload;
//			}
document.body.onload = function(){
//				originalWindowOnload();
var esdJquery = document.createElement("script");
esdJquery.setAttribute("type", "text/javascript");
esdJquery.setAttribute("src", window.location.protocol + "//" + window.location.href.split("/")[2] + "/wza/bwscript/jquery-1.12.4.min.js");
esdJquery.setAttribute("charset", "utf-8");
esdJquery.setAttribute("id", "ESDWebAppInnerIframe");
document.body.appendChild(esdJquery);
var jqueryLoadInterval = setInterval(function () {
if (window.jQuery != undefined) {
clearInterval(jqueryLoadInterval);
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//						_EsdDynamicTransformationFunction(jQuery)
}
}, 500);
};
}
}, 10);
} else {
jQuery(function(){
setTimeout( _EsdDynamicTransformationFunction(jQuery) , 1000 );
//		_EsdDynamicTransformationFunction(jQuery)
})

}
